from wtforms_tornado import Form
from wtforms.fields import IntegerField
from wtforms.fields import StringField
from wtforms.validators import DataRequired as DR


class StoreListForm(Form):
    page = IntegerField(validators=[DR()])
    limit = IntegerField(validators=[DR()])
    order = StringField()
    store_name = StringField()
    store_id = IntegerField()
    user_id = IntegerField()
    store_status = IntegerField()
    province_code = StringField()
    city_code = StringField()
    delay = IntegerField()


class GetStoreForm(Form):
    delay = IntegerField()


class AddStoreForm(Form):
    store_name = StringField(validators=[DR()])
    country_code = StringField(validators=[DR()])
    province_code = StringField(validators=[DR()])
    city_code = StringField(validators=[DR()])
    store_address = StringField(validators=[DR()])
    store_status = IntegerField(validators=[DR()])
    brand_count = IntegerField()
    user_id = IntegerField()
